package com.maven.reset;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
/**
 * Created by 毕文涛 on 2017-07-30.
 */
/*@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)*/
/*@JsonInclude(JsonInclude.Include.NON_NULL)*/
public class WSRequestResult {

    protected Integer code;
    protected String result;
    protected String message;
    protected Object data;
    protected String token;

    public WSRequestResult(Integer code, String result, Object data){
        this.code = code;
        this.result =result;
        this.data = data;
    }

    public WSRequestResult(Integer code, String result, Object data, String message){
        this.code = code;
        this.result =result;
        this.message =message;
        this.data = data;
    }

    public WSRequestResult(Integer code, String result, Object data, String message, String token){
        this.code = code;
        this.result =result;
        this.message =message;
        this.data = data;
        this.token = token;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public WSRequestResult() {


    }

}
